
function convertAlias() {
 
  var scs_name = jQuery('#sc-software-add #scs_name').val().trim().toLowerCase();
  var str = "Mr Blue has a blue house and a blue car";
  var n = scs_name.replace(/  /gi, "-");
  n = n.replace(/ /gi, "-");
  
  jQuery('#sc-software-add #scs_alias').val(n);
  return false;
}

function removeSoftware(id) {
  if (confirm('Do you want to remove this software?')) {
    jQuery.post(baseUrl+'/sc_soft/delete/'+id, {ajax: true} , function(data) {
      if (data == 'success') {
        loadKey(baseUrl+'/sc_soft/'+id+'/sckeys_load_ajax');
      } else if (data == 'failed') {
        alert('Co mot loi da xay ra.');
      }
    });
  }
  return true;
}
